package yao.spider.jsoup.vobao;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Constants {
	public static final String URL_DOMAIN_PREFIX = "http://ask.vobao.com/";
	
	public static final String URL_DOMAIN = "http://ask.vobao.com";
	
	public static final String POST_ANSWER_URL = "http://ask.vobao.com/qbar/Partation_NoLoginAnswerListPost";	//获取回答地址
	
	public static Date parseDate(String dateStr, String pattern) {
		Date date = null; // 提供默认值
		SimpleDateFormat sdf = new SimpleDateFormat(pattern);
		try {
			date = sdf.parse(dateStr);
		} catch (ParseException e) {
			//e.printStackTrace();
			System.out.println("解析错误");
		}
		return date;
	}
	
}
